#!/usr/bin/python2
import SOAPpy

class Calculator:
    def add(slef, a, b):
	return a+b
    def sub(slef, a, b):
	return a-b
    def mul(slef, a, b):
	return a*b
    def div(slef, a, b):
	return a/b
server = SOAPpy.SOAPServer(("localhost",8080))
print "Starting server..."
server.registerObject(Calculator())
server.serve_forever()
